package com.example.demo1.activity

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.demo1.databinding.ActivityMainBinding
/**
 * 主界面activity
 * **/
class MainActivity : AppCompatActivity() {
    private lateinit var binding: ActivityMainBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding=ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
        binding.button1.setOnClickListener{
            startActivity(Intent(this, EditInfoActivity::class.java))
        }
        binding.button2.setOnClickListener{
            startActivity(Intent(this, ArtitleActivity::class.java))
        }
        binding.button3.setOnClickListener{
            startActivity(Intent(this, ReadStoryActivity::class.java))
        }
    }
}